package dto

type FullFctDto struct {
	ID 				int 	`json:"id"`
	Name			string	`json:"name"`
	PageId			int		`json:"page_id"`
	PageName		string	`json:"page_name"`
	Type 			string 	`json:"type"`
	Desc 			string 	`json:"desc"`
}

type SampleFctDto struct {
	ID 				int 	`json:"id"`
	Name			string	`json:"name"`
	Type 			string 	`json:"type"`
}

// 定义转换函数
func ToFctDto(inputStructs []FullFctDto) (result []SampleFctDto){

	for i :=0; i < len(inputStructs); i++{
		res := SampleFctDto{
			ID:		inputStructs[i].ID,
			Name: 	inputStructs[i].Name,
			Type:	inputStructs[i].Type,
		}
		result = append(result,res)
	}
	return
}